package com.igoal.dao;

import java.util.List;

import com.igoal.entity.ComponentEnum;
import com.igoal.entity.User;
import com.igoal.entity.UserThumb;

public interface UserThumbDAO extends GenericDao<UserThumb, Long> {
	List<UserThumb> listThumb(ComponentEnum component, Long componentId, boolean up);
	
	int countThumb(ComponentEnum component, Long componentId, boolean up);
	
	UserThumb findByUserAndComponent(User user, ComponentEnum component, Long componentId);
}
